<template>
  <div>
    <h2>祖组件</h2>
    <Parent/>
  </div>
</template>

<script setup>
import {provide} from 'vue';
import Parent from './Parent.vue';

// 提供数据
provide('theme', 'dark');
provide('appName', 'MyApp');
</script>
